package com.zyc.netty;

import com.zyc.remoting.transport.netty.server.NettyRpcServer;
import com.zyc.serviceImpl.HelloServiceImpl;

/**
 * @author zyc
 * @create 2022-06-04-20:36
 */
public class NettyServerMain {
    public static void main(String[] args) {
        NettyRpcServer nettyRpcServer = new NettyRpcServer(5555);
        HelloServiceImpl helloService = new HelloServiceImpl();
        nettyRpcServer.registerService(helloService);
        nettyRpcServer.run();
    }
}
